package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.ter.TerBatteryDao;
import com.tbit.uqbike.client.pojo.TerBattery;
import com.tbit.uqbike.client.service.TerBatteryService;
import com.tbit.uqbike.client.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("terBatteryService")
public class TerBatteryServiceImpl implements TerBatteryService {
    @Autowired
    private TerBatteryDao terBatteryDao;

    @Override
    public List<TerBattery> getByMachineNOBatch(List<String> machineNOs) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("machineNOs", StringUtil.getArrayListString(machineNOs));

        return terBatteryDao.getByMachineNOBatch(params);
    }


}  